]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Makefile.am: Use global substitutions
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jan 2012 00:39:11 +0000 (19:39 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 7 Feb 2012 21:00:36 +0000 (16:00 -0500)
This allows us to make more than one of the same replacement in a .in file

https://bugzilla.gnome.org/show_bug.cgi?id=668429

src/Makefile.am

index fa6c4b58d945bbcdaede59cb2b5adb1b69015be4..6ec1f06ddc40333e9aa81445ff8257f26cf2bbc0 100644 (file)
@@ -48,15 +48,15 @@ uninstall-hook:
        rm -f $(DESTDIR)$(bindir)/gnome-shell
 
 generated_script_substitutions = \
-           -e "s|@bindir[@]|$(bindir)|" \
-           -e "s|@datadir[@]|$(datadir)|" \
-           -e "s|@libexecdir[@]|$(libexecdir)|" \
-           -e "s|@libdir[@]|$(libdir)|" \
-           -e "s|@JHBUILD_TYPELIBDIR[@]|$(JHBUILD_TYPELIBDIR)|" \
-           -e "s|@pkgdatadir[@]|$(pkgdatadir)|" \
-           -e "s|@PYTHON[@]|$(PYTHON)|" \
-           -e "s|@VERSION[@]|$(VERSION)|" \
-           -e "s|@sysconfdir[@]|$(sysconfdir)|"
+           -e "s|@bindir[@]|$(bindir)|g" \
+           -e "s|@datadir[@]|$(datadir)|g" \
+           -e "s|@libexecdir[@]|$(libexecdir)|g" \
+           -e "s|@libdir[@]|$(libdir)|g" \
+           -e "s|@JHBUILD_TYPELIBDIR[@]|$(JHBUILD_TYPELIBDIR)|g" \
+           -e "s|@pkgdatadir[@]|$(pkgdatadir)|g" \
+           -e "s|@PYTHON[@]|$(PYTHON)|g" \
+           -e "s|@VERSION[@]|$(VERSION)|g" \
+           -e "s|@sysconfdir[@]|$(sysconfdir)|g"
 
 gnome-shell-jhbuild: gnome-shell-jhbuild.in gnome-shell-real Makefile
        $(AM_V_GEN) sed $(generated_script_substitutions) $< > $@.tmp && mv $@.tmp $@ && chmod a+x $@